# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=hollows-hunter
pkgver=0.4.1.1
pkgrel=1
pkgdesc='Scans all running processes. Recognizes and dumps a variety of potentially malicious implants (replaced/injected PEs, shellcodes, hooks, in-memory patches).'
url='https://github.com/hasherezade/hollows_hunter'
groups=('blackarch' 'blackarch-windows' 'blackarch-malware'
        'blackarch-binary')
license=('BSD')
arch=('any')
makedepends=('unzip')
source=("https://github.com/hasherezade/${pkgname//-/_}/releases/download/v$pkgver/${pkgname//-/_}64.zip"
        "https://github.com/hasherezade/${pkgname//-/_}/releases/download/v$pkgver/${pkgname//-/_}32.zip")
sha512sums=('8ef58b56a4a62432b51bcb91033e89a2a092f9ae7196d1d4ca217cce3efa60f97361d042564aa05b040d73026e623d683f5e4b98f6a9f22ae7a12179d0d7ee9d'
            'cd8a8d950371ebba49b7f0837afecf4619eb4547cffc07acfc83074b8c0ac489d1fbc30b883316cbef4df5d6fafa3f8058dd4f589faf26b5e497396402722c60')
noextract=("${pkgname//-/_}64.zip" "${pkgname//-/_}32.zip")

package() {
  install -dm 755 "$pkgdir/usr/share/windows/$pkgname/"{64,32}

  unzip -qq "${pkgname//-/_}64.zip" -d "$pkgdir/usr/share/windows/$pkgname/64/"
  unzip -qq "${pkgname//-/_}32.zip" -d "$pkgdir/usr/share/windows/$pkgname/32/"
}

